<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>百度_ssyx</title>
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
    <style>
        body {
            max-width: 800px;
            margin: 0 auto;
        }

        #box {
            width: 100%;
        }

        #ifr {
            width: 100%;
            height: 1500px;
        }

        button {
            margin-right: 5px;
            margin-bottom: 5px;
        }
        .btn-grounp button{
            width: 120px;
            font-size: 18px;
            height: 40px;
        }
        .btn-grounp button.sot{
            width: 50px;
        }
        .btn-grounp button.sot2{
            width: 30px;
            height: 30px;
        }
        .btn-grounp button.long{
            width: 170px;
        }
        .dsnone{
            display: none;
        }
        .div-fixed2{
            position: fixed;
            right: 5px;
            top:40%;
            z-index: 999;
            text-align: center;
        }
        .div-fixed2 button{
            width: 76px;
            font-size: 14px;
            height: 45px;
        }
        .btnhide1{
            display: none;
        }
        .mark{
            position: fixed;
            top:0;
            right: 0;
            bottom: 0;
            left: 0;
            z-index: 9999;
            background-color: rgba(0,0,0,0.5);
        }
        .dialog{
            position: fixed;
            width: 90%;
            max-width: 500px;
            min-height: 452px;
            z-index: 10000;
            background-color: #fff;
            top:50%;
            left: 50%;
            transform:translate(-50%,-50%);
            padding: 8px;
            border-radius: 8px;
        }
        .dialog2{
            position: fixed;
            width: 90%;
            max-width: 500px;
            min-height: 452px;
            z-index: 10001;
            background-color: #fff;
            top:50%;
            left: 50%;
            transform:translate(-50%,-50%);
            padding: 8px;
            border-radius: 8px;
            overflow-y: auto;
        }
        .flex{
            display: flex;
        }
        .flex1{
            flex: 1;
        }
        .w20{
            width:20%;
        }
        .div1 div{
            height: 50px;
            line-height: 50px;
        }
        .div1 div input{
            height: 30px;
            line-height: 30px;
            width: 90%;
        }
        .center{
            text-align: center;
        }
        .dialog button{
            width: 120px;
            font-size: 18px;
            height: 40px;
        }
     
        @-webkit-keyframes dancingColors {
          50% {
            background-position: -860px;
          }
        }
     
        @keyframes dancingColors {
          50% {
            background-position: -860px;
          }
        }
     
        .gradient-text {
          font-weight: bold;
          transition: all 10s linear;
          background: -o-linear-gradient(left, #EA1236, #ED0AE8, #E5D60F, #0FE536, #F08108);
          background: -webkit-linear-gradient(left, #EA1236, #ED0AE8, #E5D60F, #0FE536, #F08108);
          -webkit-background-clip: text;
          -moz-background-clip: text;
          -webkit-text-fill-color: transparent;
          background-clip: text;
          -webkit-animation: dancingColors 10s infinite forwards linear;
          animation: dancingColors 10s infinite forwards linear;
        }
        .wj1{
          font-weight: bold;
            color: #E046AF; 
        }
        .wj2{
          font-weight: bold;
            color: #175FE0;
        }
        .goj{
          font-weight: bold;
            color: #F0081F;
        }
        .shm{
            /*color: #0AE88E;*/
        }
        .yjbdbox{
            align-items: center;
        }
        .yjbd{
            width: 100%;
            height: 40px;
            margin: 20px;
        }
    </style>
</head>

<body>
    <div id="mark" class="mark btnhide1" onclick="start8887()"></div>
    <div id="dialog" class="dialog btnhide1">
        <div class="flex div1 yjbdbox">
            <input id="yjbd" class="yjbd" type="text" placeholder="一键比对">
            <button type="button" onclick="start9999()">一键比对</button>
        </div>
        <div class="flex div1">
            <div class="w20 center"></div>
            <div class="flex1 center">玩家1</div>
            <div class="flex1 center">玩家2</div>
        </div>
        <div class="flex div1">
            <div class="w20 center">名称</div>
            <div class="flex1"><input id="name1" value="" placeholder="可不填"/></div>
            <div class="flex1"><input id="name2" value="" placeholder="可不填" /></div>
        </div>
        <div class="flex div1">
            <div class="w20 center">攻击</div>
            <div class="flex1"><input type="number" id="gj1" value="" max="9999"/></div>
            <div class="flex1"><input type="number" id="gj2" value="" /></div>
        </div>
        <div class="flex div1">
            <div class="w20 center">防御</div>
            <div class="flex1"><input type="number" id="fy1" value="" /></div>
            <div class="flex1"><input type="number" id="fy2" value="" /></div>
        </div>
        <div class="flex div1">
            <div class="w20 center">生命</div>
            <div class="flex1"><input type="number" id="sm1" value="" /></div>
            <div class="flex1"><input type="number" id="sm2" value="" /></div>
        </div>
        <div class="flex div1">
            <div class="w20 center">敏捷</div>
            <div class="flex1"><input type="number" id="mj1" value="" /></div>
            <div class="flex1"><input type="number" id="mj2" value="" /></div>
        </div>
        <div class="flex div1">
            <div class="w20 center"></div>
            <div class="flex1 center"><button type="button" onclick="start8888()">开始计算</button></div>
        </div>
    </div>
    <div id="dialog2" class="dialog2 btnhide1">
        
    </div>
    <div id="box">
        <div id="start" style="display:none;">开始时间：</div>
        <div id="end" style="display:none;">结束时间：</div>
        <!--<div>当前对战ID：-->
        <!--    <span id="pkid"></span>-->
        <!--</div>-->
        <!--<div>已挑战人数：-->
        <!--    <span id="pknum"></span>-->
        <!--</div>-->
        <!--<div>当前挑战人数：-->
        <!--    <span id="sunum"></span>-->
        <!--</div>-->
        <!--<div>总人数：-->
        <!--    <span id="sunums"></span>-->
        <!--</div>-->
        <!--<br>-->
        <div class="btn-grounp" style="margin-top:5px;">
            <button type="button" onclick="window.location.reload()">刷新</button>
            <button class="btnhide btnhide1" type="button" onclick="startFun5()">秘钥</button>
            <button class="btnhide btnhide1" type="button" onclick="startFun51()">秘钥1-12</button>
            <button type="button" onclick="startFun4()">停止</button>
            <button type="button" onclick="startFun999()">设置时间</button>
            <!--<button type="button" onclick="startFun25()">部落签到</button>-->
            <!--<button type="button" onclick="startFun13()">一部族长</button>-->
            <button type="button" onclick="start8886()">挑战计算</button>
            <br />
            <button type="button" onclick="startFun11()">抢铜珠</button>
            <button type="button" onclick="startFun12()">活跃</button>
            <button type="button" onclick="startFun14()">蓝钻每日</button>
            <!--<button type="button" onclick="startFun18()">自动寻宝</button>-->
            <!--<button type="button" onclick="startFun26()">二部族长</button>-->
            <br />
            <button type="button" onclick="startFun15()">小号收获</button>
            <button type="button" onclick="startFun16()">小号配对</button>
            <!--<button type="button" onclick="startFun20()">神兽签到</button>-->
            <button type="button" onclick="startFun23()">小号首页</button>
            <button type="button" onclick="startFun24()">部落首页</button>
            <button type="button" class="sot2" onclick="startFun27()" id="peiduiTime"></button>
            <button type="button" class="sot2" onclick="startFun28()" id="peiduiType"></button>
            <br />
            <button type="button" onclick="startFun31()">恢复体力</button>
            <button type="button" onclick="startFun32()" id="guanqia">设置关卡</button>
            <button type="button" onclick="startFun33()" id="guanqiastep">手动寻宝</button>
            <button type="button" onclick="startFun34()" id="guanqiastep">手动斗兽</button>
            <div style="padding-left:10px;font-weight:bold;">
                <span id="pkid"><span id="sunum"></span></span>[<span id="pknum"></span><span id="sunums" class="dsnone"></span>]
                [<span id="setInterval"></span>]
                <span id="nextTime"></span>
            </div>
            <!--<button type="button" onclick="startFun23()">回神兽</button>-->
        </div>
        <br>
        <iframe id="ifr" src="http://129.28.24.210/home/my_home.aspx" frameborder="0"></iframe>
        <div class="div-fixed2">
            <button type="button" onclick="window.location.reload()">刷新</button><br />
            <button type="button" onclick="window.location.href = './shabi1.html'">家园</button><br />
            <button type="button" onclick="window.location.href = './shabi2.html'">斗兽</button><br />
            <button type="button" onclick="window.location.href = './shabi3.html'">每日</button><br />
            <button type="button" onclick="window.location.href = './shabi4.html'">换号</button><br />
        </div>
    </div>
    <script src="./jquery.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="./shabi.js?v4.0.1"></script>
    <script>
        var idlist = [];
        var token = '';
        var num1 = 0;
        var num2 = 600;
        var num3 = 1200;
        var max1 = 600;
        var max2 = 1200;
        var max3 = 0;
        var stoproomindex = 0;//停车位下标
        var ifr = document.getElementById("ifr");
        var end = document.getElementById("end");
        var pkid = document.getElementById("pkid");
        var start = document.getElementById("start");
        var pknum = document.getElementById("pknum");
        var sunum = document.getElementById("sunum");
        var sunums = document.getElementById("sunums");
        var nextTime = document.getElementById('nextTime');
        var peiduiTime = document.getElementById('peiduiTime');
        var peiduiType = document.getElementById('peiduiType');
        var yyxhTime = '';
        var yyxhType = '';
        start.innerText = "开始时间：" + new Date();
        sunums.innerText = max3;
        pknum.innerText = 0;
        var timer1,timer2,timer3,timer4,timer5,timer6,timer7,timer8,timer9,timer10,timer11;
        var token_list = [];
        var token_list_big = [];
        var token_list_all = [];
        var link_list_shoudong = []
        var link_list_step = []
        window.onload = function(){
            token = localStorage.getItem("texun_token");
            document.getElementById('guanqia').innerText = '设置关卡'+(localStorage.getItem("xunbao_guanqia")||1);
            var xunbao_guanqia = localStorage.getItem("xunbao_guanqia");
            xunbao_guanqia = xunbao_guanqia?Number(xunbao_guanqia):1;
            var link_list1 = [
                    {url:"http://129.28.24.210/game/ssyx/xb.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok",step:''}, // 进入关卡
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token,step:'1-1'}, // 寻宝开始
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok&cid=1",step:'1-1'}, // 第一层怪1
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token,step:'1-2'}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok&cid=4",step:'1-2'}, // 第一层怪2
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token,step:'1-3'}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok&cid=5",step:'1-3'}, // 第一层怪3
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token,step:'2-1'}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok&cid=6",step:'2-1'}, // 第二层怪1
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token,step:'2-2'}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok&cid=7",step:'2-2'}, // 第二层怪2
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token,step:'2-3'}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok&cid=8",step:'2-3'}, // 第二层怪3
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token,step:'3-1'}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok&cid=9",step:'3-1'}, // 第三层怪1
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token,step:'3-2'}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok&cid=10",step:'3-2'}, // 第三层怪2
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token,step:'3-3'}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok&cid=11",step:'3-3'}, // 第三层怪3
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token,step:'4-1'}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok&cid=12",step:'4-1'}, // 第三层怪BOSS
                    {url:"http://129.28.24.210/game/ssyx/xb.aspx?id="+xunbao_guanqia+"&sid="+token}, // 退出
                ]
            var link_list2 = [
                    {url:"http://129.28.24.210/game/ssyx/xb.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok"}, // 进入关卡
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token}, // 寻宝开始
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok&cid=13"}, // 第一层怪1
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok&cid=14"}, // 第一层怪2
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok&cid=15"}, // 第一层怪3
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok&cid=16"}, // 第二层怪1
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok&cid=17"}, // 第二层怪2
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok&cid=18"}, // 第二层怪3
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok&cid=19"}, // 第三层怪1
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok&cid=20"}, // 第三层怪2
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok&cid=21"}, // 第三层怪3
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok&cid=22"}, // 第三层怪BOSS
                    {url:"http://129.28.24.210/game/ssyx/xb.aspx?id="+xunbao_guanqia+"&sid="+token}, // 退出
                ]
            var link_list3 = [
                    {url:"http://129.28.24.210/game/ssyx/xb.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok"}, // 进入关卡
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token}, // 寻宝开始
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok&cid=23"}, // 第一层怪1
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok&cid=24"}, // 第一层怪2
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok&cid=25"}, // 第一层怪3
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok&cid=26"}, // 第二层怪1
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok&cid=27"}, // 第二层怪2
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok&cid=28"}, // 第二层怪3
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok&cid=29"}, // 第三层怪1
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok&cid=30"}, // 第三层怪2
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok&cid=31"}, // 第三层怪3
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok&cid=32"}, // 第三层怪BOSS
                    {url:"http://129.28.24.210/game/ssyx/xb.aspx?id="+xunbao_guanqia+"&sid="+token}, // 退出
                ]
            var link_list4 = [
                    {url:"http://129.28.24.210/game/ssyx/xb.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok"}, // 进入关卡
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token}, // 寻宝开始
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok&cid=34"}, // 第一层怪1
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok&cid=35"}, // 第一层怪2
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok&cid=36"}, // 第一层怪3
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok&cid=37"}, // 第二层怪1
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok&cid=38"}, // 第二层怪2
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok&cid=39"}, // 第二层怪3
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok&cid=40"}, // 第三层怪1
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok&cid=41"}, // 第三层怪2
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok&cid=42"}, // 第三层怪3
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+xunbao_guanqia+"&sid="+token+"&act=ok&cid=43"}, // 第三层怪BOSS
                    {url:"http://129.28.24.210/game/ssyx/xb.aspx?id="+xunbao_guanqia+"&sid="+token}, // 退出
                ]
            if(xunbao_guanqia == 1){
                link_list_shoudong = link_list1
            }else if(xunbao_guanqia == 2){
                link_list_shoudong = link_list2
            }else if(xunbao_guanqia == 3){
                link_list_shoudong = link_list3
            }else if(xunbao_guanqia == 4){
                link_list_shoudong = link_list4
            }
            link_list_step = link_list1
            yyxhTime = localStorage.getItem("texun_yyxhTime") ? Number(localStorage.getItem("texun_yyxhTime")) : 1;
            yyxhType = localStorage.getItem("texun_yyxhType") ? Number(localStorage.getItem("texun_yyxhType")) : 0;
            peiduiTime.innerText = yyxhTime;
            peiduiType.innerText = yyxhType;
            if(localStorage.getItem("texun_token_list_all")){
                token_list_all = JSON.parse(localStorage.getItem("texun_token_list_all"))
            }
            if(localStorage.getItem("texun_token_list")){
                token_list = JSON.parse(localStorage.getItem("texun_token_list"))
                token_list_big = JSON.parse(localStorage.getItem("texun_token_list"))
                token_list_big.unshift(token)
                token_list_big.push(token_list_all[12])
                // console.log(token_list)
                // console.log(token_list_big)
            }
            ifr.src = "http://129.28.24.210/game/ssyx/?sid=" + token;
            if(localStorage.getItem("texun_ishide") == 1){
                var btnlist = document.getElementsByClassName('btnhide') || [];
                for(var i=0;i<btnlist.length;i++){
                    var classVal = btnlist[i].getAttribute("class");
                    classVal = classVal.replace("btnhide1","");
                    btnlist[i].setAttribute("class",classVal);
                }
            }
            if(localStorage.getItem('nextTimeGetTongZhu')){
                setNextTime();
            }
            if(localStorage.getItem('nextTimeGetTongZhuTrue') == 1){
                localStorage.setItem('texun_isDayMask',1);
                localStorage.setItem('nextTimeGetTongZhuTrue',2);
                localStorage.setItem('nextTimeGetTongZhu',(new Date().getTime() + 7230000));
                setNextTime();
                console.log('调用收取函数');
                setTimeout(function() {
                    startFun11();
                }, 1200);
            }
            if(localStorage.getItem('resetShenshouTili') == 1){
                localStorage.setItem('resetShenshouTili',0);
                console.log('调用重置体力函数');
                setTimeout(function() {
                    startFun23();
                }, 1200);
            }
        }
        function startFun31(){
            let url = "http://129.28.24.210/game/ssyx/tl.aspx?sid=" + token;
            ifr.src = url
        }
        function startFun32(){
            var start_xunbao = prompt("请输入寻宝关卡1嫦娥，2猪八戒，3秘境，4麒麟","");
            if(start_xunbao){
                localStorage.setItem('xunbao_guanqia',start_xunbao);
                document.getElementById('guanqia').innerText = '设置关卡'+start_xunbao
            }
        }
        var start_index = 0;
        function startFun33(){
            document.getElementById('guanqiastep').innerText = '手动寻宝'+(link_list_step[start_index].step||'');
            ifr.src = link_list_shoudong[start_index].url;
            start_index++;
            if(start_index >= link_list_shoudong.length){
                start_index = 0
            }
        }
        function startFun34(){
            let url = "http://129.28.24.210/game/ssyx/ds.aspx?id=200&sid=" + token;
            ifr.src = url
        }
        function setNextTime(){
            var loadNextTime = new Date(Number(localStorage.getItem('nextTimeGetTongZhu')));
                nextTime.innerText = ('下次收取时间：' + loadNextTime.getFullYear() + '-' + (loadNextTime.getMonth() + 1) + '-' + loadNextTime.getDate() + ' ' + loadNextTime.getHours() + ':' + loadNextTime.getMinutes() + ':' + loadNextTime.getSeconds())
        }
        function startFun4() {
            clearInterval(timer1);
            clearInterval(timer2);
            clearInterval(timer3);
            clearInterval(timer4);
            clearInterval(timer5);
            clearInterval(timer6);
            clearInterval(timer7);
            clearInterval(timer8);
            clearInterval(timer9);
            clearInterval(timer10);
            clearInterval(timer11);
        }
        function startFun5(){
            var input_token = prompt("请输入秘钥","");
            if(input_token===null) return;
            if(input_token!=null && input_token!=""){
                input_token = input_token.slice(input_token.indexOf('31046.')+6);
                token = '31046.'+input_token;
                localStorage.setItem("texun_token",token);
                ifr.src = "http://129.28.24.210/home/my_home.aspx?sid=" + token;
            }
        }
        function startFun51(){
            var token_list_arr = prompt("请输入秘钥","");
            if(token_list_arr){
                token_list = [];
                token_list_arr = token_list_arr.split(",")
                for(var i=0;i<token_list_arr.length;i++){
                    var item_token = token_list_arr[i];
                    token_list.push(item_token.slice(item_token.indexOf('sid=')+4))
                }
                localStorage.setItem("texun_token_list",JSON.stringify(token_list));
            }
        }
        
        var zengsongid = ['77990026','77990044','77990045','77990046','77990047','77990048','77990049',
                          '77990050','77990051','77990052','77990053','77990113'
                        ];
        var zengsongindex = 0;
        function startFun11(){
            timer1 = setInterval(function () {
                if (zengsongindex >= zengsongid.length) {
                    clearInterval(timer1);
                    startFun15();
                }else{
                    sunum.innerText = zengsongid[zengsongindex];
                    pknum.innerText = zengsongindex;
                    ifr.src = "http://129.28.24.210/game/ssyx/tsh.aspx?id=" + zengsongid[zengsongindex]+"&sid=" + token;
                    zengsongindex++;
                }
            }, 1200)
        }
        function startFun12(){
            ifr.src = "http://129.28.24.210/game/ssyx/hd.aspx?id=1&sid=" + token;
        }
        function startFun13(){
            ifr.src = "http://129.28.24.210/game/ssyx/?sid=" + token;
        }
        function startFun14(){
            ifr.src = "http://129.28.24.210/game/ssyx/qd.aspx?sid=" + token;
        }
        var xiaohaoshouhuo = 0;
        function startFun15(){
            timer2 = setInterval(function () {
                if (xiaohaoshouhuo >= token_list_big.length) {
                    clearInterval(timer2);
                    startFun16();
                }else{
                    sunum.innerText = '';
                    pknum.innerText = xiaohaoshouhuo;
                    ifr.src = "http://129.28.24.210/game/ssyx/sh.aspx?sid=" + token_list_big[xiaohaoshouhuo];
                    xiaohaoshouhuo++;
                }
            }, 1300)
        }
        var xiaohaopeidui = 0;
        function startFun16(){
            //http://129.28.24.210/game/ssyx/sc.aspx?oid=6&sid=31046.wzgruj1MA1UR3GLSYuQBlG&id=54&cid=71587
            var token_list_big_new = token_list_big;
            var token_list_oid =[9,6,6,6,6,6,6,6,6,6,6,6,1];
            var token_list_uid =[100,66,74,63,64,67,68,69,70,71,72,73,165];
            var token_list_cid =[75473,31055,31055,31061,31055,31055,31055,31055,31055,31055,31055,31055,31046];
            var token_list_tid =[yyxhTime,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];
            // var token_list_big_new = token_list_big.slice(1);
            // var token_list_oid =[6,6,6,6,6,6,6,6,6,6,6,1];
            // var token_list_uid =[63,64,66,67,68,69,70,71,72,73,74,165];
            // var token_list_cid =[31077,31055,31055,31055,31055,31055,31055,31055,31055,31055,31055,31046];
            // var token_list_tid =[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];
            // console.log(token_list_tid)
            // return
            timer3 = setInterval(function () {
                if (xiaohaopeidui >= token_list_big_new.length) {
                    clearInterval(timer3);
                    localStorage.setItem('texun_isDayMask',2);
                    localStorage.setItem('nextTimeGetTongZhu',(new Date().getTime() + 7233456));
                    setTimeout(function(){
                        window.location.href = './shabi1.html';
                    },30)
                }else{
                    sunum.innerText = '';
                    pknum.innerText = xiaohaopeidui;
                    ifr.src = "http://129.28.24.210/game/ssyx/sc.aspx?oid=" + token_list_oid[xiaohaopeidui] + "&sid=" + token_list_big_new[xiaohaopeidui] + "&id=" + token_list_uid[xiaohaopeidui] + "&cid=" + token_list_cid[xiaohaopeidui] + '&tid=' + token_list_tid[xiaohaopeidui];
                    xiaohaopeidui++;
                }
            }, 1300)
        }
        // 自动寻宝
        function startFun18(){
            var start_xunbao = prompt("请输入寻宝次数和寻宝关卡(1.嫦娥，2.猪八戒，3.秘境(.号拼接))","");
            if(!start_xunbao || start_xunbao.indexOf('.') == -1) return;
            var start_xunbao_times = Number(start_xunbao.split(".")[0]);
            var start_xunbao_type = start_xunbao.split(".")[1];
            // console.log(start_xunbao_times,start_xunbao_type);
            var link_list = []
            var link_list1 = [
                    {url:"http://129.28.24.210/game/ssyx/tl.aspx?sid=" + token}, // 恢复体力
                    {url:"http://129.28.24.210/game/ssyx/xb.aspx?id="+start_xunbao_type+"&sid="+token+"&act=ok"}, // 进入关卡
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token}, // 寻宝开始
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token+"&act=ok&cid=1"}, // 第一层怪1
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token+"&act=ok&cid=4"}, // 第一层怪2
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token+"&act=ok&cid=5"}, // 第一层怪3
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token+"&act=ok&cid=6"}, // 第二层怪1
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token+"&act=ok&cid=7"}, // 第二层怪2
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token+"&act=ok&cid=8"}, // 第二层怪3
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token+"&act=ok&cid=9"}, // 第三层怪1
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token+"&act=ok&cid=10"}, // 第三层怪2
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token+"&act=ok&cid=11"}, // 第三层怪3
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token+"&act=ok&cid=12"}, // 第三层怪BOSS
                    {url:"http://129.28.24.210/game/ssyx/xb.aspx?id="+start_xunbao_type+"&sid="+token}, // 退出
                ]
            var link_list2 = [
                    {url:"http://129.28.24.210/game/ssyx/tl.aspx?sid=" + token}, // 恢复体力
                    {url:"http://129.28.24.210/game/ssyx/xb.aspx?id="+start_xunbao_type+"&sid="+token+"&act=ok"}, // 进入关卡
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token}, // 寻宝开始
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token+"&act=ok&cid=13"}, // 第一层怪1
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token+"&act=ok&cid=14"}, // 第一层怪2
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token+"&act=ok&cid=15"}, // 第一层怪3
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token+"&act=ok&cid=16"}, // 第二层怪1
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token+"&act=ok&cid=17"}, // 第二层怪2
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token+"&act=ok&cid=18"}, // 第二层怪3
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token+"&act=ok&cid=19"}, // 第三层怪1
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token+"&act=ok&cid=20"}, // 第三层怪2
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token+"&act=ok&cid=21"}, // 第三层怪3
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token+"&act=ok&cid=22"}, // 第三层怪BOSS
                    {url:"http://129.28.24.210/game/ssyx/xb.aspx?id="+start_xunbao_type+"&sid="+token}, // 退出
                ]
            var link_list3 = [
                    {url:"http://129.28.24.210/game/ssyx/tl.aspx?sid=" + token}, // 恢复体力
                    {url:"http://129.28.24.210/game/ssyx/xb.aspx?id="+start_xunbao_type+"&sid="+token+"&act=ok"}, // 进入关卡
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token}, // 寻宝开始
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token+"&act=ok&cid=23"}, // 第一层怪1
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token+"&act=ok&cid=24"}, // 第一层怪2
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token+"&act=ok&cid=25"}, // 第一层怪3
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token+"&act=ok&cid=26"}, // 第二层怪1
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token+"&act=ok&cid=27"}, // 第二层怪2
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token+"&act=ok&cid=28"}, // 第二层怪3
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token+"&act=ok&cid=29"}, // 第三层怪1
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token+"&act=ok&cid=30"}, // 第三层怪2
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token+"&act=ok&cid=31"}, // 第三层怪3
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token}, // 继续寻宝
                    {url:"http://129.28.24.210/game/ssyx/xbjx.aspx?id="+start_xunbao_type+"&sid="+token+"&act=ok&cid=32"}, // 第三层怪BOSS
                    {url:"http://129.28.24.210/game/ssyx/xb.aspx?id="+start_xunbao_type+"&sid="+token}, // 退出
                ]
            // http://129.28.24.210/game/ssyx/xbjx.aspx?id=1&sid=31046.kgs9k7cjleoguAxFqG2x6C&act=ok&cid=12
            if(start_xunbao_type == 1){
                link_list = link_list1;
            }
            if(start_xunbao_type == 2){
                link_list = link_list2;
            }
            if(start_xunbao_type == 3){
                link_list = link_list3;
            }
            var xunbao_timer = null;
            var xunbao_start = 0;
            var start_xunbao_end = 0;
            var xunbao_end = link_list.length;
            xunbao_timer = setInterval(function(){
                ifr.src = link_list[xunbao_start].url;
                xunbao_start++;
                if(xunbao_start >= xunbao_end){
                    xunbao_start = 0;
                    start_xunbao_end++;
                    if(start_xunbao_end >= start_xunbao_times){
                        clearInterval(xunbao_timer);
                        window.location.reload();
                    }
                }
            },1500)
        }
        function startFun999(){
            var nextTime = prompt("请输入下次自动收取铜珠的剩余分钟数","");
            var trueTime = [0,0];
            if(nextTime.indexOf('.') != -1){
                trueTime[0] = nextTime.split('.')[0]
                trueTime[1] = nextTime.split('.')[1]
            }else{
                trueTime[1] = nextTime
            }
            localStorage.setItem('nextTimeGetTongZhu',(new Date().getTime() + (Number(trueTime[0]*60) + Number(trueTime[1]))*60000 + 30000));
            localStorage.setItem('texun_isDayMask',2);
            setTimeout(function(){
                window.location.href = './shabi1.html';
            },30)
            // var year = new Date().getFullYear();
            // var miao = '00';
            // nextTime = nextTime.split(".");
            // var time = year + '/' + nextTime[0] + '/' + nextTime[1] + ' ' + nextTime[2] + ':' + nextTime[3] + ':' + miao;
            // localStorage.setItem('nextTimeGetTongZhu',(new Date(time).getTime() + 30000));
            // setTimeout(function(){
            //     window.location.reload();
            // },500)
        }
        var qiandao4 = 0;
        function startFun20(){
            timer7 = setInterval(function () {
                if (qiandao4 >= token_list.length) {
                    clearInterval(timer7);
                    startFun23();
                }else{
                    sunum.innerText = '';
                    pknum.innerText = qiandao4;
                    ifr.src = "http://129.28.24.210/game/ssyx/hd.aspx?id=5&oid=1&sid=" + token_list[qiandao4] + '&act=ok';
                    qiandao4++;
                }
            }, 1300)
        }
        var qiandao7 = 0;
        function startFun23(){
            timer10 = setInterval(function () {
                if (qiandao7 >= token_list_big.length) {
                    clearInterval(timer10);
                    window.location.reload();
                }else{
                    sunum.innerText = '';
                    pknum.innerText = qiandao7;
                    ifr.src = "http://129.28.24.210/game/ssyx/?sid=" + token_list_big[qiandao7];
                    qiandao7++;
                }
            }, 1300)
        }
        var qiandao8 = 0;
        var buluoId = [1002,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004]
        function startFun25(){
            var token_list2 = JSON.parse(JSON.stringify(token_list));
            token_list2.unshift(token);
            timer11 = setInterval(function () {
                if (qiandao8 >= token_list2.length) {
                    clearInterval(timer11);
                    sunum.innerText = '';
                    pknum.innerText = '';
                    startFun24();
                }else{
                    sunum.innerText = '';
                    pknum.innerText = qiandao8 + '  -  ' + token_list2[qiandao8].slice(0,5);
                    ifr.src = "http://129.28.24.210/game/ssyx/blqd.aspx?id=" + buluoId[qiandao8] + "&act=ok&sid=" + token_list2[qiandao8];
                    qiandao8++;
                }
            }, 1300)
        }
        function startFun26(){
            ifr.src = "http://129.28.24.210/game/ssyx/?sid=" + token_list_all[12];
        }
        function startFun24(){
            // ifr.src = "http://129.28.24.210/game/ssyx/?sid=" + token;
            ifr.src = "http://129.28.24.210/game/ssyx/blzy.aspx?id=1002&sid=" + token;
        }
        function startFun27(){
            if(yyxhTime == 1){
                yyxhTime = 2
                localStorage.setItem('texun_yyxhTime',yyxhTime)
            }else if(yyxhTime == 2){
                yyxhTime = 3
                localStorage.setItem('texun_yyxhTime',yyxhTime)
            }else{
                yyxhTime = 1
                localStorage.setItem('texun_yyxhTime',yyxhTime)
            }
            peiduiTime.innerText = yyxhTime
        }
        function startFun28(){
            if(yyxhType == 1){
                yyxhType = 0
                localStorage.setItem('texun_yyxhType',yyxhType)
            }else{
                yyxhType = 1
                localStorage.setItem('texun_yyxhType',yyxhType)
            }
            peiduiType.innerText = yyxhType
        }
        function start8886(){
            document.getElementById('mark').setAttribute("class",'mark');
            document.getElementById('dialog').setAttribute("class",'dialog');
            document.getElementById('dialog2').setAttribute("class",'dialog2 btnhide1');
        }
        function start8887(){
            document.getElementById('mark').setAttribute("class",'mark btnhide1');
            document.getElementById('dialog').setAttribute("class",'dialog btnhide1');
            document.getElementById('dialog2').setAttribute("class",'dialog2 btnhide1');
        }
        function start9999(){
            let yjbd = document.getElementById('yjbd').value
            if(yjbd){
                let str1 = yjbd.slice(yjbd.indexOf('攻击：')+3,yjbd.indexOf('防御：'))
                let str2 = yjbd.slice(yjbd.indexOf('防御：')+3,yjbd.indexOf('生命：'))
                let str3 = yjbd.slice(yjbd.indexOf('生命：')+3,yjbd.indexOf('敏捷：'))
                let str4 = yjbd.slice(yjbd.indexOf('敏捷：')+3)
                document.getElementById('gj1').value = parseInt(str1.split('VS')[0])
                document.getElementById('gj2').value = parseInt(str1.split('VS')[1])
                document.getElementById('fy1').value = parseInt(str2.split('VS')[0])
                document.getElementById('fy2').value = parseInt(str2.split('VS')[1])
                document.getElementById('sm1').value = parseInt(str3.split('VS')[0])
                document.getElementById('sm2').value = parseInt(str3.split('VS')[1])
                document.getElementById('mj1').value = parseInt(str4.split('VS')[0])
                document.getElementById('mj2').value = parseInt(str4.split('VS')[1])
            }
        }
        function start8888(){
            var name1 = document.getElementById('name1').value || '玩家1';
            var name2 = document.getElementById('name2').value || '玩家2';
            var gj1 = Number(document.getElementById('gj1').value);
            var gj2 = Number(document.getElementById('gj2').value);
            var fy1 = Number(document.getElementById('fy1').value);
            var fy2 = Number(document.getElementById('fy2').value);
            var sm1 = Number(document.getElementById('sm1').value);
            var sm2 = Number(document.getElementById('sm2').value);
            var sm1O = Number(document.getElementById('sm1').value);
            var sm2O = Number(document.getElementById('sm2').value);
            var mj1 = Number(document.getElementById('mj1').value);
            var mj2 = Number(document.getElementById('mj2').value);
            var listStr = [];
            var firstAtk = mj1>mj2?true:false; // 谁先攻击
            while(sm1 > 0 && sm2 > 0){
                if(firstAtk){
                    firstAtk = false;
                    var sm2j = gj1 - fy2;
                    sm2j = sm2j<=0?1:sm2j;
                    sm2 = (sm2 - sm2j);
                    listStr.unshift(`第${listStr.length+1}回合<span class="wj1">${name1}</span>攻击<span class="wj2">${name2}</span>，生命-<span class="goj">${sm2j}</span>，剩余生命：[<span class="shm">${sm2<=0?0:sm2}</span>/<span class="shm">${sm2O}</span>]`)
                    if(sm2<=0){
                        listStr.unshift(`玩家 <span class="gradient-text">${name1}</span> 获胜<br/>`)
                    }
                }else{
                    firstAtk = true;
                    var sm1j = gj2 - fy1;
                    sm1j = sm1j<=0?1:sm1j;
                    sm1 = (sm1 - sm1j);
                    listStr.unshift(`第${listStr.length+1}回合<span class="wj2">${name2}</span>攻击<span class="wj1">${name1}</span>，生命-<span class="goj">${sm1j}</span>，剩余生命：[<span class="shm">${sm1<=0?0:sm1}</span>/<span class="shm">${sm1O}</span>]`)
                    if(sm1<=0){
                        listStr.unshift(`玩家 <span class="gradient-text">${name2}</span> 获胜<br/>`)
                    }
                }
            }
            var listStrHtml = "";
            for(var i=0;i<listStr.length;i++){
                listStrHtml += listStr[i] + '<br/>'
            }
            document.getElementById('dialog2').setAttribute("class",'dialog2');
            document.getElementById('dialog2').innerHTML = listStrHtml;
        }
    </script>
</body>

</html>